package com.vcc.service.client.dto.card;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
@Setter
@Getter
public class RequestCardDto implements Serializable {

    @NotNull(message = "请选择卡号段")
    private Long id;

    @NotNull(message = "请输入充值金额")
    @Min(value = 0, message = "充值金额最小为0")
    private BigDecimal amount;

    @NotNull(message = "请输入开卡数")
    @Min(value = 1, message = "开卡数最小为1")
    private Integer count;

    private String remark;

    private Long cardholderId;

    @NotNull(message = "请勾选是否由系统创建持卡人")
    private Boolean systemCreateCardholder;

    @NotNull(message = "请选择是否为单一持卡人或者多个持卡人")
    private Boolean hasSingleCardholder;

    private Long groupId;

}
